#ifndef OBJECT_H
#define OBJECT_H

#include <cmath>
#include <QGraphicsItem>
#include <QPixmap>
#include "purgatory.h"
#include "objecttype.h"
class Grid;
class Tile;

class Object : public QGraphicsItem
{

public:


    ot::ObjectType type;
    Purgatory* purgatory;
    QPixmap texture;


    Tile* tile;
    Grid* grid;

    static float distance(int x0,int y0,int x1,int y1);
    void setPurgatory(Purgatory*);
    virtual void purge()=0;
    virtual void control()=0;
    virtual void physics()=0;
    virtual void step()=0;


};

#endif // OBJECT_H
